<?php

/**
 * 网站后台路由 -- 后台菜单设置
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/menu/'],function() {
    //列表
    Route::get('datalist', 'MenuController@listData');
    //添加
	Route::get('addview', 'MenuController@addDataView');
	Route::post('addsave', 'MenuController@toAddData');
    //更新
	Route::get('editview/{id}', 'MenuController@updateDataView');
	Route::post('editsave/{id}', 'MenuController@toUpdateData');
    //修改状态
	Route::get('status/{id}/{status?}', 'MenuController@toStatusData');
    //删除
	Route::delete('destroy', 'MenuController@toDelData');
});

